unit uFovHeader;

interface

type

  pFOV_CELL = ^FOV_CELL;
  FOV_CELL = record
    Flags: byte;
    Reserved: pointer;
  end;
  
  Tfov_cells = array of fov_cell;

  FOV_MAP = record
    Width: integer;
    Height: integer;
    Cells: TFOV_CELLs;
  end;

const
  FOV_CELL_HIDDEN = 0;
  FOV_CELL_VISIBLE = 1;
  FOV_CELL_OPAQUE = 2;
  FOV_CELL_VISITED = 4;
  FOV_CELL_CHANGED = 8;

function CalcFOVC(var map: FOV_MAP; px, py, radius: integer): integer;
  stdcall; external 'BeaRLibFOV.dll';

implementation

end.

